package com.weitu.emergency.mapper;

import com.weitu.emergency.entity.EmergencyVehicleParameter;
import org.apache.ibatis.annotations.Param;

/**
 * @author zhangqingxi 2017-05-10
 */
public interface EmergencyVehicleParameterMapper {

    /**
     * 根据Id 查询
     *
     * @param emergencyVehicleId 车辆ID
     * @return 应急车辆
     */
    EmergencyVehicleParameter findByEmergencyVehicleId(@Param("emergencyVehicleId") String emergencyVehicleId);

    /**
     * 添加 应急车辆
     *
     * @param emergencyVehicleParameter 应急车辆
     * @return 插入结果
     */
    Integer add(EmergencyVehicleParameter emergencyVehicleParameter);

    /**
     * 修改应急车辆
     *
     * @param emergencyVehicleParameter 应急车辆
     * @return 插入结果
     */
    Integer updateById(EmergencyVehicleParameter emergencyVehicleParameter);

}
